package org.javaee113.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @作者 itcast
 * @创建日期 2020/11/2 16:48
 **/
@Component
@ConfigurationProperties(prefix = "person")
public class PersonProperties {
    private Integer id = 10;
    private String personName = "老王";

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPersonName() {
        return personName;
    }

    public void setPersonName(String personName) {
        this.personName = personName;
    }
}
